<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>网站内容管理系统 - 登录</title>
<style type="text/css"> 
  #login {
    border: 1px solid #666;
    text-align: center;
    margin: auto auto 2px auto;
    width: 50%;
    position: absolute;
    top: 100px;
    left: 25%;
  }
  #login .error{
    color: red;
  }
  
  #login .title{
    font-size: 140%;
  }
  
  #login .row{
    margin: 5px;
  }

</style>
</head>
<body>
<form id="login" name="login" method="post" action="j_spring_security_check">
  <div class="error"><c:if test="${failed}">登录失败，请重试</c:if> </div>
  <div class="title">用户登录</div>
  <div class="row">
    <label for="j_username">用户：</label>
    <input name="j_username" type="text" />
  </div>
  <div class="row">
    <label for="j_password">密码：</label>
    <input name="j_password" type="password" />
  </div>
  <div class="row">
    <input name="_spring_security_remember_me" type="checkbox" value="" />
    <label for="_spring_security_remember_me">保持登录</label>
  </div>
  <div class="row">
    <input name="submit" type="submit" value="登录" />
    <input name="reset" type="reset"  value="重置" />
  </div>
</form>
</body>
</html>